package com.ruoyi.ma.mapper;

import com.ruoyi.ma.domain.MaMaterialPlan;
import com.ruoyi.ma.domain.MaMaterialPlanDetails;
import com.ruoyi.ma.domain.vo.MaMaterialPlanDetailsVo;
import com.ruoyi.ma.domain.vo.MaMaterialPlanVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 材料计划Mapper接口
 *
 * @author llb
 * @date 2024-11-01
 */
public interface MaMaterialPlanMapper extends BaseMapperPlus<MaMaterialPlanMapper, MaMaterialPlan, MaMaterialPlanVo> {

    MaMaterialPlanVo getById(@Param("planId") Long planId);

    List<MaMaterialPlanDetailsVo> getPrePlanInfo(@Param("planId") Long planId, @Param("gysId") Long gysId);

    // 获取历史最新清单信息
    List<MaMaterialPlanDetailsVo> getLatestMaterialInfo(@Param("planId") Long planId, @Param("gysId") Long gysId);

    Map<String, Object> getActHisVarInfo(@Param("planId") Long planId);
}
